package com.dhcc.DRGsHosp.facade.impl;

import java.util.Map;

import javax.inject.Named;

import java.util.List;

import org.openkoala.koala.commons.InvokeResult;
import org.springframework.beans.factory.annotation.Autowired;

import com.dhcc.DRGsHosp.application.MedInsCompleteApplication;
import com.dhcc.DRGsHosp.facade.MedInsCompleteFacade;
import com.dhcc.DRGsHosp.infra.util.DrgsIndex;

@Named
public class MedInsCompleteFacadeImpl implements MedInsCompleteFacade{
	@Autowired
	private MedInsCompleteApplication medInsCompleteApplication;
	/**
	 * 
	 *  @Description：查询医保主键问题病例
	 *  @Author ZouYiyu  
	 *  @see com.dhcc.DRGsHosp.facade.MedInsCompleteFacade#medInsQuestionsQuery()
	 */
	@Override
	public InvokeResult medInsQuestionsQuery(String dateFrom,String dateTo) {
		dateFrom=DrgsIndex.formateDateFrom(dateFrom);
		dateTo=DrgsIndex.formateDateTo(dateTo);
		List<Map<String,Object>> listmap=medInsCompleteApplication.medInsQuestionsQuery(dateFrom,dateTo);
		return InvokeResult.success(listmap);
	}
	/**
	 * 
	 *  @Description：更新主键和异常标志字段
	 *  @Author ZouYiyu  
	 *  @see com.dhcc.DRGsHosp.facade.MedInsCompleteFacade#updateMedinsQuery(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
	 */
	@Override
	public String updateMedinsQuery(String id, String mrNo, String outDate, String inDate){
		return	medInsCompleteApplication.updateMedinsQuery(id,mrNo,outDate,inDate);
	}

}
